]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-global: Remove unused ShellGlobal parameters
authorDan Winship <danw@gnome.org>
Wed, 27 Apr 2011 11:04:58 +0000 (07:04 -0400)
committerDan Winship <danw@gnome.org>
Mon, 16 May 2011 18:51:35 +0000 (14:51 -0400)
Remove the ShellGlobal parameter from any method that isn't actually
ShellGlobal-related (and rename them to not have "global" in the
name).

https://bugzilla.gnome.org/show_bug.cgi?id=648755

js/ui/search.js
src/shell-global.c
src/shell-global.h

index 1244def89ecfffc717714812f3ff5eafd70ba341..eb84b09f1468234fb8de1eea32dd0e131ccf741b 100644 (file)
@@ -276,7 +276,7 @@ OpenSearchSystem.prototype = {
     _addProvider: function(fileName) {
         let path = global.datadir + '/search_providers/' + fileName;
         let source = Shell.get_file_contents_utf8_sync(path);
-        let [success, name, url, langs, icon_uri] = global.parse_search_provider(source);
+        let [success, name, url, langs, icon_uri] = Shell.parse_search_provider(source);
         let provider ={ name: name,
                         url: url,
                         id: this._providers.length,
index 3061d5fe891438687a87a1787c0ff097a601db0a..cdf9fcb2ac71960669fda3eff5faff400539963a 100644 (file)
@@ -1086,21 +1086,19 @@ shell_global_reexec_self (ShellGlobal *global)
 }
 
 /**
- * shell_global_breakpoint:
- * @global: A #ShellGlobal
+ * shell_breakpoint:
  *
  * Using G_BREAKPOINT(), interrupt the current process.  This is useful
  * in conjunction with a debugger such as gdb.
  */
 void
-shell_global_breakpoint (ShellGlobal *global)
+shell_breakpoint (void)
 {
   G_BREAKPOINT ();
 }
 
 /**
- * shell_global_parse_search_provider:
- * @global: A #ShellGlobal
+ * shell_parse_search_provider:
  * @data: description of provider
  * @name: (out): location to store a display name
  * @url: (out): location to store template of url
@@ -1111,13 +1109,12 @@ shell_global_breakpoint (ShellGlobal *global)
  * Returns: %TRUE on success
  */
 gboolean
-shell_global_parse_search_provider (ShellGlobal   *global,
-                                    const char    *data,
-                                    char         **name,
-                                    char         **url,
-                                    GList        **langs,
-                                    char         **icon_data_uri,
-                                    GError       **error)
+shell_parse_search_provider (const char    *data,
+                             char         **name,
+                             char         **url,
+                             GList        **langs,
+                             char         **icon_data_uri,
+                             GError       **error)
 {
   xmlDocPtr doc = xmlParseMemory (data, strlen(data));
   xmlNode *root;
index 311a12cbdcd28a756d5b3e4d1944ab8dacd4fd81..67e657fee5340306924dc91ea77c0944b60c5fb6 100644 (file)
@@ -73,15 +73,14 @@ void     shell_global_end_modal   (ShellGlobal *global,
 
 void shell_global_reexec_self (ShellGlobal *global);
 
-void shell_global_breakpoint (ShellGlobal *global);
-
-gboolean shell_global_parse_search_provider (ShellGlobal   *global,
-                                             const char    *data,
-                                             char         **name,
-                                             char         **url,
-                                             GList        **langs,
-                                             char         **icon_data_uri,
-                                             GError       **error);
+void shell_breakpoint (void);
+
+gboolean shell_parse_search_provider (const char    *data,
+                                      char         **name,
+                                      char         **url,
+                                      GList        **langs,
+                                      char         **icon_data_uri,
+                                      GError       **error);
 
 void shell_global_gc (ShellGlobal *global);